阿里云ECS使用smtp.163.com发送邮件失败,如何解决?

您所在的位置:网站首页 阿里云服务器 发邮件 阿里云ECS使用smtp.163.com发送邮件失败,如何解决?

阿里云ECS使用smtp.163.com发送邮件失败,如何解决?

2024-02-26 17:46| 来源: 网络整理| 查看: 265

1、邮件发送程序运行时报超时,但是ping smtp.163.com是OK的。org.springframework.mail.MailSendException: Mail server connection failed; nested exception is com.sun.mail.util.MailConnectException: Couldn't connect to host, port: smtp.163.com, 25; timeout -1; nested exception is:

java.net.ConnectException: Connection timed out (Connection timed out). Failed messages: com.sun.mail.util.MailConnectException: Couldn't connect to host, port: smtp.163.com, 25; timeout -1;

nested exception is:

java.net.ConnectException: Connection timed out (Connection timed out); message exception details (1) are:

Failed message 1:com.sun.mail.util.MailConnectException: Couldn't connect to host, port: smtp.163.com, 25; timeout -1; nested exception is:

java.net.ConnectException: Connection timed out (Connection timed out)

2、本地电脑运行正常可以发送邮件,但是部署到ecs服务器上运行就提示超时,ecs防火墙有拦截吗?



【本文地址】


今日新闻


推荐新闻


CopyRight 2018-2019 办公设备维修网 版权所有 豫ICP备15022753号-3